package cn.jdbc.mysql;

import java.sql.*;

public class Testfu1202 {
    public static void main(String[] args) throws Exception{
        Class.forName("com.mysql.jdbc.Driver");
        String url="jdbc:mysql://localhost:3306/test?userSSL=false";
        String name="root";
        String password ="root";
        Connection connection = DriverManager.getConnection(url, name,
                password);
        Statement statement = connection.createStatement();
      ResultSet set= statement.executeQuery("SELECT `id`,`username`,`password` FROM `table-user`");
        boolean next = set.next();
        System.out.println(next);
        set.getString(2);
    }
}
